1. /* sfmdnchk.cpp by K.Tsuru */
  2. // function ID = 71 DRADIX
  3. /**************************************************
  4. SFraction class
  5. It checks that the denominator is positive or not.
  6. ***************************************************/
  7. #ifndef SN_H
  8. #include "sn.h"
  9. #endif
  10. void SFraction::DenCheck(void){
  11. if(den.Sign(71) == 0 ) den.SetError(den.DIVIDED_BY_ZERO,"SF", 71);
  12. if(den.Sign() < 0){
  13. den.ChangeSign(); // den = -den
  14. num.ChangeSign(); // num = -num
  15. }
  16. if(den.IsOne()) reduceDone = true;
  17. }

sfmdnchk.cpp : last modifiled at 2015/12/04 11:00:00(516 bytes)
created at 2015/12/22 16:07:29
The creation time of this html file is 2016/09/13 19:56:38 (Tue Sep 13 19:56:38 2016).